package com.ljx.excel;

import com.alibaba.excel.EasyExcel;

import java.util.LinkedList;
import java.util.List;

/**
 * @author 李捷禧
 * Date: 2023/4/6
 * ClassName: test
 */

public class test {

    public static void main(String[] args) {
        Stu stu = new Stu();
        stu.setId(1);
        stu.setName("李捷禧");
        List<Stu> list = new LinkedList<>();
        list.add(stu);
        list.add(stu);
        list.add(stu);
        list.add(stu);
        String filename = "E:\\vue\\easyexcel\\ljx.xlsx";
        EasyExcel.write(filename, Stu.class).sheet("写入方法").doWrite(list);
    }

}
